package cn.aaa.autoConfiguration;

import cn.aaa.config.WechatProperties;
import cn.aaa.template.WechatLoginTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({WechatProperties.class})
public class WechatLoginAutoConfiguration {

    @Bean
    public WechatLoginTemplate wechatLoginTemplate(WechatProperties properties){
        return new WechatLoginTemplate(properties);
    }
}
